from problems.problem import Problem


class Indicator:

    @staticmethod
    def isTheSmallerTheBetter():
        return True

    @classmethod
    def get_value(cls, population, problem_obj: Problem):
        obj = population['obj']
        return cls.value(obj, problem_obj.optimal_solutions).item()
